<?php 
class BaseAction extends Action{
	function _initialize(){
		$cate = M("ArticleType")->field("id,name,key")->order("sort desc,id asc")->select();
		$config = array();
		$config_list = D("Config")->select();
		foreach($config_list as $key=>$val){
			$config[$val['key']] = $val['val'];
		}
		$this->assign('config',$config);
		$this->assign('cate',$cate);
	}
}
?>